<template>
  <h1>我是demo2</h1>
  <h1>{{ car }}</h1>

  <Dilaog />
</template>

<script>
import { inject } from "vue";
import Dilaog from "./Dilaog.vue";
export default {
  name: "Demo",
  components: { Dilaog },
  setup() {
    const car = inject("car");

    return { car };
  },
};
</script>
